<h2>用户管理 &gt; 用户信息 &gt; <?= $this->ret['data']['username']?></h2>

<a href='<?= AdminController::_makeURL('account', 'index', 'profile', array('uid'=>$this->uid))?>'>基本信息</a>
<a href='<?= AdminController::_makeURL('account', 'index', 'profile', array('uid'=>$this->uid, 'type'=>'blog'))?>'>BLOG相关</a>
<a href='<?= AdminController::_makeURL('account', 'index', 'profile', array('uid'=>$this->uid, 'type'=>'friends'))?>'>好友相关</a>
<?
$row = $this->ret['data'];
?>

<? if($this->type=='default'):?>
<table class='property' cellpadding="0" cellspacing="0">
	<tr>
		<td class='key'>头像</td>
		<td><img src="<?= avatar_util_saver::get_path($row['id'])?>"/></td>
	</tr>
	<tr>
		<td class='key'>用户id</td>
		<td><?= $row['id']?></td>
	</tr>
	<tr>
		<td class='key'>用户名</td>
		<td><?= $row['username']?></td>
	</tr>
	<tr>
		<td class='key'>生日</td>
		<td><?= $row['birthday']?></td>
	</tr>
	<tr>
		<td class='key'>电子邮件</td>
		<td><?= $row['email']?></td>
	</tr>
	<tr>
		<td class='key'>性别</td>
		<td><?= $row['gender_flag']==1?"男":($row['gender_flag']==2?"女":"未知")?></td>
	</tr>
	<tr>
		<td class='key'>居住地</td>
		<td><?= $row['r_province'].$row['r_city'].$row['r_district']?></td>
	</tr>
	<tr>
		<td class='key'>老家</td>
		<td><?= $row['h_province'].$row['h_city'].$row['h_district']?></td>
	</tr>
	<tr>
		<td class='key'>血型</td>
		<td><?= $_SERVER['const']['bloodtype'][$row['bloodtype']]?></td>
	</tr>
	<tr>
		<td class='key'>星座</td>
		<td><?= $row['astro']?></td>
	</tr>
	<tr>
		<td class='key'>婚姻</td>
		<td><?= $_SERVER['const']['marriage'][$row['marriage']]?></td>
	</tr>
	<tr>
		<td class='key'>隐私设置</td>
		<td><pre><?
		print_r($row['privacy'])
		?></pre></td>
	</tr>
	<tr>
		<td class='key'>显示设置</td>
		<td><pre><?
		print_r($row['srank'])
		?></pre></td>
	</tr>
	<tr>
		<td class='key'>动态设置</td>
		<td><pre><?
		print_r($row['notify'])
		?></pre></td>
	</tr>
	<tr>
		<td class='key'>最后登录ip</td>
		<td><?= $row['ip0'].".".$row['ip1'].".".$row['ip2'].".".$row['ip3']?></td>
	</tr>
	<tr>
		<td class='key'>最后登录时间</td>
		<td><?=date('Y-m-d H:i:s', $row['last_online_time'])?></td>
	</tr>
	<tr>
		<td class='key'>在线累计时间</td>
		<td><?= sprintf('%0.2f' , $row['online_seconds']/3600)?>小时</td>
	</tr>	
</table>
<? else:?>
<?
$this->_include($this->type, 'index', 'embedprofile', array(), false);
?>
<? endif;?>